package com.hxz.entity;

import java.io.Serializable;

/**
 * Create by Alden He on 2019/5/8
 * comment
 *   reply1(@comment)
 *   reply2(@reply1)--这条回复@了relpy1，但是也要发通知给comment和article
 */

public class ReplyComment implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
    private int articleId;
    private int commentId;
    //private int commentUserId;//
    private int replyUserId;//创建这条回复的id
    private User user;//读取评论的时候需要读取这个user信息
    private int repliedUserId;//这条回复的@人的id
    private String content;
    private String createTime;
    public ReplyComment(){}
    public ReplyComment(int articleId,int commentId,int replyUserId,int repliedUserId,String content){
        this.articleId=articleId;
        this.commentId=commentId;
        this.replyUserId=replyUserId;
        this.repliedUserId=repliedUserId;
        this.content=content;
    }
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public int getArticleId() {
		return articleId;
	}
	public void setArticleId(int articleId) {
		this.articleId = articleId;
	}
	public int getCommentId() {
		return commentId;
	}
	public void setCommentId(int commentId) {
		this.commentId = commentId;
	}
	public int getReplyUserId() {
		return replyUserId;
	}
	public void setReplyUserId(int replyUserId) {
		this.replyUserId = replyUserId;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public int getRepliedUserId() {
		return repliedUserId;
	}
	public void setRepliedUserId(int repliedUserId) {
		this.repliedUserId = repliedUserId;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
    
}
